package com.edwin.ws.restfulservice;

import java.util.HashMap;
import java.util.Map;

import org.springframework.stereotype.Component;


@Component
public class RestfulServiceSampleImpl implements RestfulServiceSample{
	
	
	
	public String addRestfulServiceQuery(int num1, int num2) {
		Map<String,String>  map=new HashMap<String,String>();
		String strnum=String.valueOf(num1+num2);
		map.put("AddResult", strnum);
		return map.toString();
	}
	
	public String addRestfulServicePath(int num1, int num2) {
		Map<String,String>  map=new HashMap<String,String>();
		String strnum=String.valueOf(num1+num2);
		map.put("AddResult", strnum);
		return map.toString();
	}
	
	public String addRestfulServicePost(int num1, int num2) {
		Map<String,String>  map=new HashMap<String,String>();
		String strnum=String.valueOf(num1+num2);
		map.put("AddResult", strnum);
		return map.toString();
	}
	
}
